﻿using System;
using System.Collections.Generic;
using System.Web;

namespace FDeal
{
    public class ChiTietDealCTL
    {
        private ChiTietDealDTO info = new ChiTietDealDTO();
        private ChiTietDealDAO data = new ChiTietDealDAO();

        public ChiTietDealDTO ChiTietDeal
        {
            get
            {
                return info;
            }
            set
            {
                info = value;
            }
        }

        public void insert()
        {
            data.insert(info);
        }

        public void delete()
        {
            data.delete(info.Iddeal);
        }

        public void update()
        {
            data.update(info);
        }

        public ChiTietDealDTO[] getDsChiTietDeal()
        {
            return data.getDsChiTietDeal();
        }
    }
}